{% extends "pkg/pkg_base.html" %}

{% block content %}

    {# 游戏基本信息 #}
    <div class="row-fluid">
        <form class="form-horizontal" role="form">
            <div class="form-group">

                <label for="gameName"
                       class="col-sm-1 control-label">game_name：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" id="gameName"
                           name="gameName"
                           value="{{ game.name }}" disabled>
                </div>
                <label for="client_id"
                       class="col-sm-1 control-label">client_id：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" id="client"
                           name="client"
                           value="{{ game.client_id }}" disabled>
                </div>


                <label for="game_type"
                       class="col-sm-1 control-label">类别：</label>

                <div class="col-sm-3">
                    <input type="text" class="form-control" id="game_type"
                           name="game_type"
                           value="{{ game.game_type }}" disabled>
                </div>
            </div>
        </form>
        {# 游戏扩展信息 #}
        <form>
            <div class="form-group" style="border: solid">
                <label for="game_ext" class="control-label">游戏重要信息记录:</label>
                <span name="game_ext" id="game_ext">
            {{ game.game_ext|safe }}
            </span>
            </div>
        </form>
    </div>
    {% for game_log in history_logs %}
        <hr class="style-line">
        <div id="case_content" style="">
            <form class="form-horizontal">
                <fieldset disabled="disabled" id="game_detail">
                    {# 用例基本信息 #}
                    <div class="form-group">
                        <div class="col-sm-3 hidden">
                            <input type="text" class="form-control edit_log"
                                   id="log_id"
                                   name="log_id"
                                   value="{{ game_log.id }}">
                        </div>

                        <label for="appver" class="col-sm-1 control-label ">versionName:</label>

                        <div class="col-sm-3">
                            <input type="text"
                                   class="form-control edit_log case_info"
                                   id="appver"
                                   name="appver"
                                   value="{{ game_log.appver }}" required>
                        </div>

                        <label for="vcode"
                               class="col-sm-1 control-label">versonCode:</label>

                        <div class="col-sm-3">
                            <input type="text"
                                   class="form-control edit_log case_info"
                                   id="vcode" name="vcode"
                                   value="{{ game_log.vcode }}">
                        </div>

                        <label for="package"
                               class="col-sm-1 control-label">package:</label>

                        <div class="col-sm-3">
                            <input type="text"
                                   class="form-control edit_log case_info"
                                   id="package" name="package"
                                   value="{{ game_log.package }}">
                        </div>

                    </div>
                    <div class="form-group">
                        <label for="sy_sdk"
                               class="col-sm-1 control-label">sy_sdk:</label>

                        <div class="col-sm-3">
                            <input type="text"
                                   class="form-control edit_log case_info"
                                   id="sy_sdk" name="sy_sdk"
                                   value="{{ game_log.sy_sdk }}">
                        </div>

                        <label for="fn_sdk"
                               class="col-sm-1 control-label">fn_sdk:</label>

                        <div class="col-sm-3">
                            <input type="text"
                                   class="form-control edit_log case_info"
                                   id="fn_sdk" name="fn_sdk"
                                   value="{{ game_log.fn_sdk }}">
                        </div>

                        <label for="md5"
                               class="col-sm-1 control-label">md5:</label>

                        <div class="col-sm-3">
                            <input type="text"
                                   class="form-control edit_log case_info"
                                   id="md5" name="md5"
                                   value="{{ game_log.md5 }}">
                        </div>

                    </div>
                    <div class="form-group">
                        <label for="pt_type"
                               class="col-sm-1 control-label">plat:</label>
                        <div class="col-sm-3 edit_log">
                            <select id="pt_type" name="pt_type"
                                    class="form-control"
                                    onchange="change_pt_type();">
                                <option value=""></option>
                                <option value="jm"
                                        {% ifequal game_log.pt_type 'jm' %}selected{% endifequal %}>
                                    jm
                                </option>
                                <option value="sy"
                                        {% ifequal game_log.pt_type 'sy' %}selected{% endifequal %}>
                                    sy
                                </option>
                            </select>
                        </div>

                        <label for="recharge" class="col-sm-1 control-label">recharge:</label>
                        <div class="col-sm-3 edit_log">
                            <select id="recharge" name="recharge"
                                    class="form-control"
                                    onchange="change_recharge();">
                                <option value=""></option>
                                <option value="0"
                                        {% ifequal game_log.recharge '0' %}selected{% endifequal %}>
                                    非充值包
                                </option>
                                <option value="1"
                                        {% ifequal game_log.recharge '1' %}selected{% endifequal %}>
                                    充值包
                                </option>
                            </select>
                        </div>

                        <label for="device_id" class="col-sm-1 control-label">device_id：</label>

                        <div class="col-sm-3">
                            <input type="text"
                                   class="form-control edit_log case_info"
                                   id="device_id"
                                   name="device_id"
                                   value="{{ game_log.device_id }}">
                        </div>

                    </div>
                    <div class="form-group">
                        <label for="plat_channel"
                               class="col-sm-1 control-label">plat_channel：</label>

                        <div class="col-sm-3">
                            <input type="text"
                                   class="form-control edit_log case_info"
                                   id="plat_channel"
                                   name="plat_channel"
                                   value="{{ game_log.plat_channel }}">
                        </div>

                        <label for="result"
                               class="col-sm-1 control-label">result：</label>

                        <div class="col-sm-3 edit_log">
                            <select id="result" name="result"
                                    class="form-control">
                                <option value=""></option>
                                <option value="1"
                                        {% ifequal game_log.result '1' %}selected{% endifequal %}>
                                    通过
                                </option>
                                <option value="0"
                                        {% ifequal game_log.result '0' %}selected{% endifequal %}>
                                    不通过
                                </option>
                            </select>
                        </div>


                        <label for="modify_date"
                               class="col-sm-1 control-label">last_modify：</label>

                        <div class="col-sm-3">
                            <input type="text"
                                   class="form-control case_info"
                                   id="modify_date"
                                   name="modify_date"
                                   value="{{ game_log.creator }} | {{ game_log.modify_date|date:'Y-m-d H:i:s' }}"
                                   readonly>
                        </div>
                    </div>

                    {% with case_info=game_log.case_info %}
                        {# 用例执行信息 #}
                        <div class="form-group">
                        <table class="table table-bordered table-condensed">
                            <thead>
                            <tr class="success">
                                <th>项目</th>
                                <th>子项目</th>
                                <th>接入列表</th>
                                <th>大陆(4399sy)日志</th>
                                <th>联运（蜂鸟）日志</th>
                                <th>备注</th>
                            </tr>
                            </thead>
                            <tbody>

                            <tr class="info">
                                <td rowspan="19"
                                    style="text-align: center;vertical-align: middle;max-width: 60px">
                                    平台SDK接入
                                </td>
                                <td colspan="4" class="hidden"></td>
                            </tr>

                            <tr class="info">
                                <td rowspan="7" class="disabled"
                                    style="text-align: center;vertical-align: middle">
                                    <a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="client">客户端埋点数据</a>
                                </td>
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="open_game" class="muted">
                                    打开游戏日志 </a></td>
                                <td><select id="open_game_dl"
                                            name="open_game_dl"
                                            class="form-control text-muted"
                                            required>
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.open_game.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.open_game.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.open_game.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.open_game.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>
                                <td><select id="open_game_ly"
                                            name="open_game_ly"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.open_game.ly '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.open_game.ly '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.open_game.ly '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.open_game.ly '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="open_game_ext"
                                                                    name="open_game_ext"
                                                                    value="{{ case_info.open_game.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="before_login">
                                    登录界面前日志</a></td>
                                <td><select id="before_login_dl"
                                            name="before_login_dl"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.before_login.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.before_login.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.before_login.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.before_login.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>
                                </select></td>
                                <td><select id="before_login_ly"
                                            name="before_login_ly"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.before_login.ly '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.before_login.ly '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.before_login.ly '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.before_login.ly '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>
                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="before_login_ext"
                                                                    name="before_login_ext"
                                                                    value="{{ case_info.before_login.ext }}">
                                </td>
                            </tr>

                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="select_server">
                                    选服日志</a></td>
                                <td><select id="select_server_dl"
                                            name="select_server_dl"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.select_server.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.select_server.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.select_server.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.select_server.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>
                                <td><select id="select_server_ly"
                                            name="select_server_ly"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.select_server.ly '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.select_server.ly '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.select_server.ly '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.select_server.ly '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="select_server_ext"
                                                                    name="select_server_ext"
                                                                    value="{{ case_info.select_server.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="create_role">
                                    创角日志</a></td>

                                <td style="text-align: center;vertical-align: middle">
                                    ——
                                </td>
                                <td><select id="create_role_ly"
                                            name="create_role_ly"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.create_role.ly '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.create_role.ly '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.create_role.ly '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.create_role.ly '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="create_role_ext"
                                                                    name="create_role_ext"
                                                                    value="{{ case_info.create_role.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="online">
                                    在线日志</a></td>
                                <td style="text-align: center;vertical-align: middle">
                                    ——
                                </td>
                                <td><select id="online_ly" name="online_ly"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.online.ly '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.online.ly  '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.online.ly  '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.online.ly  '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="online_ext"
                                                                    name="online_ext"
                                                                    value="{{ case_info.online.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="level">
                                    等级日志</a></td>
                                <td style="text-align: center;vertical-align: middle">
                                    ——
                                </td>
                                <td><select id="level_ly" name="level_ly"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.level.ly '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.level.ly '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.level.ly '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.level.ly '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="level_ext"
                                                                    name="level_ext"
                                                                    value="{{ case_info.level.ext }}">
                                </td>
                            </tr>


                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="gift">
                                    礼包激活日志</a></td>
                                <td><select id="gift_dl" name="gift_dl"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.gift.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.gift.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.gift.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.gift.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>
                                <td><select id="gift_ly" name="gift_ly"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.gift.ly '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.gift.ly '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.gift.ly '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.gift.ly '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>
                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="gift_ext"
                                                                    name="gift_ext"
                                                                    value="{{ case_info.gift.ext }}">
                                </td>
                            </tr>


                            <tr class="info">
                                <td rowspan="5"
                                    style="text-align: center;vertical-align: middle;max-width: 80px">
                                    <a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="server">服务端埋点数据<p
                                            style="text-align: left">
                                    </p></a>
                                </td>

                            </tr>

                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="regist">注册日志
                                </a>

                                </td>
                                <td><select id="regist_dl" name="regist_dl"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.regist.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.regist.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.regist.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.regist.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>
                                </select></td>
                                <td style="text-align: center;vertical-align: middle">
                                    ——
                                </td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="regist_ext"
                                                                    name="regist_ext"
                                                                    value="{{ case_info.regist.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="after_login">
                                    登录完成日志</a></td>
                                <td><select id="after_login_dl"
                                            name="after_login_dl"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.after_login.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.after_login.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.after_login.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.after_login.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>
                                <td><select id="after_login_ly"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.after_login.ly '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.after_login.ly '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.after_login.ly '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.after_login.ly '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="after_login_ext"
                                                                    name="after_login_ext"
                                                                    value="{{ case_info.after_login.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="pay_num">
                                    获取订单号日志</a></td>
                                <td><select id="pay_num_dl" name="pay_num_dl"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.pay_num.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.pay_num.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.pay_num.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.pay_num.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>
                                <td style="text-align: center;vertical-align: middle">
                                    ——
                                </td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="pay_num_ext"
                                                                    name="pay_num_ext"
                                                                    value="{{ case_info.pay_num.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="recharge">
                                    充值到游戏日志</a></td>
                                <td><select id="recharge_dl" name="recharge_dl"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.recharge.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.recharge.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.recharge.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.recharge.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>
                                <td><select id="recharge_ly" name="recharge_ly"
                                            class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.recharge.ly '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.recharge.ly '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.recharge.ly '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.recharge.ly '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="recharge_ext"
                                                                    name="recharge_ext"
                                                                    value="{{ case_info.recharge.ext }}">
                                </td>
                            </tr>

                            <tr class="info">
                                <td rowspan="6"
                                    style="text-align: center;vertical-align: middle;max-width: 80px">
                                    其他
                                </td>
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="change_account">
                                    切换账号</a></td>
                                <td colspan="2"><select id="change_account_dl"
                                                        name="change_account_dl"
                                                        class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.change_account.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.change_account.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.change_account.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.change_account.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="change_account_ext"
                                                                    name="change_account_ext"
                                                                    value="{{ case_info.change_account.ext }}">
                                </td>
                            </tr>
                            <tr class="info sy">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="assistance">
                                    小助手回调显示</a></td>
                                <td colspan="2"><select id="assistance_dl"
                                                        name="assistance_dl"
                                                        class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.assistance.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.assistance.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.assistance.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.assistance.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="assistance_ext"
                                                                    name="assistance_ext"
                                                                    value="{{ case_info.assistance.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="share">
                                    游戏内分享</a></td>
                                <td colspan="2"><select id="share_dl"
                                                        name="share_dl"
                                                        class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.share.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.share.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.share.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.share.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="share_ext"
                                                                    name="share_ext"
                                                                    value="{{ case_info.share.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="update">
                                    游戏强更新</a></td>
                                <td colspan="2"><select id="update_dl"
                                                        name="update_dl"
                                                        class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.update.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.update.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.update.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.update.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="update_ext"
                                                                    name="update_ext"
                                                                    value="{{ case_info.update.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="pkg_name">
                                    渠道ID(默认270)</a></td>
                                <td colspan="2"><select id="pkg_name_dl"
                                                        name="pkg_name_dl"
                                                        class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.pkg_name.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.pkg_name.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.pkg_name.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.pkg_name.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="pkg_name_ext"
                                                                    name="pkg_name_ext"
                                                                    value="{{ case_info.pkg_name.ext }}">
                                </td>
                            </tr>
                            <tr class="info">
                                <td><a data-toggle="modal"
                                       data-target="#stepModal"
                                       data-whatever="message">
                                    云推送检查</a></td>
                                <td colspan="2"><select id="message_dl"
                                                        name="message_dl"
                                                        class="form-control">
                                    <option value=""></option>
                                    <option value="1"
                                            {% ifequal case_info.message.dl '1' %}selected{% endifequal %}>
                                        通过
                                    </option>
                                    <option value="0"
                                            {% ifequal case_info.message.dl '0' %}selected{% endifequal %}>
                                        不通过
                                    </option>
                                    <option value="3"
                                            {% ifequal case_info.message.dl '3' %}selected{% endifequal %}>
                                        忽略
                                    </option>
                                    <option value="2"
                                            {% ifequal case_info.message.dl '2' %}selected{% endifequal %}>
                                        暂不接入
                                    </option>

                                </select></td>

                                <td class="form-control ext"><input type="text"
                                                                    class="form-control edit_log ext"
                                                                    id="message_ext"
                                                                    name="message_ext"
                                                                    value="{{ case_info.message.ext }}">
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                        {# 用例扩展信息 #}
                        <div class="form-group">
                            <label for="test_ext" class="control-label">本次测试主要问题:</label>
                            <textarea rows="5" id="test_ext" class="edit_log"
                                      style="width: 100%;height: auto">{{ game_log.test_ext }}</textarea>
                        </div>
                    {% endwith %}
                </fieldset>
                {# 用例编辑按钮 #}
                <div class="form-group">
                    <div class="" style="float: right">
                        <button type="button" class="btn btn-primary"
                                data-toggle="modal" data-target="#emailModal"
                                data-whatever={{ game_log.id }}>
                            邮件报告
                        </button>
                    </div>
                </div>
            </form>
        </div>
    {% endfor %}


{% endblock %}
